package kr.hkit.powerjava.chapter22.work;

import java.security.acl.LastOwnerException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class TestMain {
	public static void main(String[] args) {
		ArrayList<Student> stdList= new ArrayList<>();
		initList(stdList);
		StudentManager sm= new StudentManager(stdList);
		
	}
		
		/*	prnHeader();
//		prnList(stdList);
		
		
		Student std = new Student(2, "장동건");
		System.out.println(stdList,lastIndexof(std)+ stdList.contains(std));
	}
	Comparator<Student>comp =new Comparator<Student>() {
		
	};
	Collections.sort(stdList.c);
	*/
	
	
	
	
	private static void prnHeader(){
		String header=String.format("%3s\t %10s\t %4s\t %4s\t%4s\t &4s\t %5.2f",
				"학번", "학번", "학번", "학번", "학번", "학번", "학번");
		System.out.println(header);
	}
	

	private static void initList(ArrayList<Student>stdList){
		stdList.add(new Student(1, "김태희", 87, 97, 75));
		stdList.add(new Student(2, "장동건", 75, 77, 95));
		stdList.add(new Student(3, "김민종", 85, 84, 77));
		stdList.add(new Student(4, "하정우", 84, 88, 69));
		stdList.add(new Student(5, "이양평", 83, 94, 71));
	}
	
}

